package com.ruoyi.system.service.impl;

import com.ruoyi.common.exception.BusinessException;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.system.domain.SysHolidayDetail;
import com.ruoyi.system.domain.SysHolidayTotal;
import com.ruoyi.system.domain.SysParamter;
import com.ruoyi.system.mapper.SysHolidayDetailMapper;
import com.ruoyi.system.mapper.SysHolidayTotalMapper;
import com.ruoyi.system.service.ISysHolidayDetailService;
import com.ruoyi.system.service.ISysHolidayTotalService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
import java.util.UUID;

/**
 * 休假管理模块
 * @author ytl
 */
@Service
public class SysHolidayTotalServiceImpl implements ISysHolidayTotalService {

    @Autowired
    public SysHolidayTotalMapper sysHolidayTotalMapper;

    private static final Logger log = LoggerFactory.getLogger(SysHolidayTotalServiceImpl.class);

    @Override
    public int insertSysHolidayTotal(SysHolidayTotal sysHolidayTotal) {
        return sysHolidayTotalMapper.insertSysHolidayTotal(sysHolidayTotal);
    }

    @Override
    public List<SysHolidayTotal> listSysHolidayTotal(SysHolidayTotal sysHolidayTotal) {
        return sysHolidayTotalMapper.listSysHolidayTotal(sysHolidayTotal);
    }


    @Override
    public int deleteHolidayTotal(SysHolidayTotal sysHolidayTotal) {
        return sysHolidayTotalMapper.deleteHolidayTotal(sysHolidayTotal);
    }



    @Override
    public List<SysHolidayTotal> selectSysHolidayTotal(SysHolidayTotal sysHolidayTotal) {
        return sysHolidayTotalMapper.selectSysHolidayTotal(sysHolidayTotal);
    }


    @Override
    public SysHolidayTotal selectSysHolidayTotalById(String holidayUuid) {
        return sysHolidayTotalMapper.selectSysHolidayTotalById(holidayUuid);
    }


}
